package com.example.icongyou.api;

import com.example.icongyou.bean.MemberContributionBean;
import com.example.icongyou.bean.Team;
import com.example.icongyou.bean.TeamDashboardBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface TeamApi {
    /**
     * 获取团队数据看板
     * @param teamId 团队ID
     */
    @GET("api/dashboard/team/{teamId}")
    Call<TeamDashboardBean> getTeamDashboard(@Path("teamId") Long teamId);

    @GET("teams/{id}")
    Call<Team> getTeamById(@Path("id") Long id);

    /**
     * 获取个人在团队中的贡献度
     * @param teamId 团队ID
     * @param studentId 学生ID
     */
    @GET("api/dashboard/team/{teamId}/contribution/{studentId}")
    Call<MemberContributionBean> getMemberContribution(
            @Path("teamId") Long teamId,
            @Path("studentId") Long studentId
    );
}